import request from '@/utils/request'

// 条件查询
export const collectFindBySearchApi = (params: any) => request.get<any, any>('/collect/search', { params })

// 检索所有用户
export const collectFindUserApi = () => request.get<any, any>('/collect/consumer')

// 检索歌曲
export const collectFindSongApi = (id: any) => request.get<any, any>('/collect/song/' + id)

// 检索歌单
export const collectFindSongListApi = (id: any) => request.get<any, any>('/collect/songList/' + id)

// 新增or修改
export const collectSaveApi = (collectData: any) => request.post<any, any>('/collect', collectData)

// 删除
export const collectDeleteApi = (id: any) => request.delete<any, any>('/collect' + id)
